import SubPage from "@/layout/SubPage.vue"

export default {
  path: "base",
  name: "base",
  component: SubPage,
  meta: { title: "基础模块", icon: "dashboard" },
  hidden: true,
  children: [// --- 用户权限 ---
    {
      path: "user",
      name: "user",
      component: SubPage,
      meta: { title: "用户权限", icon: "dashboard" },
      hidden: true,
      children: [// --- 用户管理 ---
        {
          path: "user",
          name: "subUser",
          component: SubPage,
          meta: { title: "用户管理", icon: "dashboard" },
          hidden: true,
          children: [{
            path: "user/:viewMode/:mode",
            name: "subSubUser",
            component: () => import("@/views/business/page/manager/base/user/user/User"),
            meta: { title: "诊疗用户", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "agent/:viewMode/:mode",
            name: "agent",
            component: () => import("@/views/business/page/manager/base/user/user/Agent"),
            meta: { title: "代理商信息", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "agent_user/:viewMode/:mode",
            name: "agentUser",
            component: () => import("@/views/business/page/manager/base/user/user/Agentuser"),
            meta: { title: "代理商人员", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "store/:viewMode/:mode",
            name: "store",
            component: () => import("@/views/business/page/manager/base/user/user/Store"),
            meta: { title: "门店信息", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "store_user/:viewMode/:mode",
            name: "storeUser",
            component: () => import("@/views/business/page/manager/base/user/user/StoreUser"),
            meta: { title: "门店人员", icon: "dashboard" },
            hidden: true,
            props: true
          }]
        },
        // --- 权限管理 ---
        {
          path: "role",
          name: "role",
          component: SubPage,
          hidden: true,
          meta: { title: "权限管理", icon: "dashboard" },
          children: [{
            path: "Dep/:viewMode/:mode",
            name: "Dep",
            component: () => import("@/views/business/page/manager/base/user/role/Dep.vue"),
            meta: { title: "部门", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "Role/:viewMode/:mode",
            name: "Role",
            component: () => import("@/views/business/page/manager/base/user/role/Role.vue"),
            meta: { title: "角色", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "Member/:viewMode/:mode",
            name: "Member",
            component: () => import("@/views/business/page/manager/base/user/role/Member.vue"),
            meta: { title: "员工", icon: "dashboard" },
            hidden: true,
            props: true
          }]
        },
        {
          path: "robot",
          name: "robot",
          component: SubPage,
          hidden: true,
          meta: { title: "机器人管理", icon: "dashboard" },
          children: [
            {
              path: "RobotType/:viewMode/:mode",
              name: "RobotType",
              component: () => import("@/views/business/page/manager/base/user/robot/RobotType"),
              meta: { title: "机器人类型", icon: "dashboard" },
              hidden: true,
              props: true
            }, {
              path: "robot/:viewMode/:mode",
              name: "subRobot",
              component: () => import("@/views/business/page/manager/base/user/robot/Robot"),
              meta: { title: "机器人", icon: "dashboard" },
              hidden: true,
              props: true
            }, {
              path: "MachineType/:viewMode/:mode",
              name: "MachineType",
              component: () => import("@/views/business/page/manager/base/user/robot/MachineType"),
              meta: { title: "设备类型", icon: "dashboard" },
              hidden: true,
              props: true
            }, {
              path: "machine/:viewMode/:mode",
              name: "machine",
              component: () => import("@/views/business/page/manager/base/user/robot/Machine"),
              meta: { title: "设备管理", icon: "dashboard" },
              hidden: true,
              props: true
            }, {
              path: "machine_record/:viewMode/:mode",
              name: "machinerecord",
              component: () => import("@/views/business/page/manager/base/user/robot/MachineRecord"),
              meta: { title: "设备绑定", icon: "dashboard" },
              hidden: true,
              props: true
            }
          ]
        }
      ]
    }, // --- 系统词典 ---
    {
      path: "dictionary",
      name: "dictionary",
      component: SubPage,
      meta: { title: "系统词典 ", icon: "dashboard" },
      hidden: true,
      props: true,
      children: [// --- 数据字典 ---
        {
          path: "data_dic",
          name: "dataDic",
          component: SubPage,
          meta: { title: "数据字典", icon: "dashboard" },
          hidden: true,
          props: true,
          children: [{
            path: "data_directory/:viewMode/:mode",
            name: "dataDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/datadic/DataDirectory"),
            meta: { title: "数据字典", icon: "dashboard" },
            hidden: true,
            props: true
          }]
        }, // --- 诊疗字典 ---
        {
          path: "diag_dic",
          name: "diag_dic",
          component: SubPage,
          meta: { title: "诊疗字典", icon: "dashboard" },
          hidden: true,
          props: true,
          children: [{
            path: "sym_directory/:viewMode/:mode",
            name: "sym_directory",
            component: () => import("@/views/business/page/manager/base/dictionary/diagdic/SymDirectory.vue"),
            meta: { title: "症状词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "family_directory/:viewMode/:mode",
            name: "familyDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/diagdic/FamilyDirectory.vue"),
            meta: { title: "家族病词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "his_directory/:viewMode/:mode",
            name: "hisDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/diagdic/HisDirectory"),
            meta: { title: "既往史词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "fdm_directory/:viewMode/:mode",
            name: "fdmDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/diagdic/FdmDirectory"),
            meta: { title: "四诊法词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "phy_directory/:viewMode/:mode",
            name: "phyDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/diagdic/PhyDirectory"),
            meta: { title: "体质词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "diag_directory/:viewMode/:mode",
            name: "diagDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/diagdic/DiagDirectory"),
            meta: { title: "诊断词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "allergy_directory/:viewMode/:mode",
            name: "allergyDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/diagdic/AllergyDirectory"),
            meta: { title: "过敏史词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "ChDiagDirectory/:viewMode/:mode",
            name: "ChDiagDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/diagdic/ChDiagDirectory"),
            meta: { title: "中医病词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "ChYndromeDirectory/:viewMode/:mode",
            name: "ChYndromeDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/diagdic/ChYndromeDirectory"),
            meta: { title: "中医症词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "ChTherapyDirectory/:viewMode/:mode",
            name: "ChTherapyDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/diagdic/ChTherapyDirectory"),
            meta: { title: "中医治法词典", icon: "dashboard" },
            hidden: true,
            props: true
          }]
        }, // --- 医药字典 ---
        {
          path: "medicine_dic",
          name: "medicineDic",
          component: SubPage,
          meta: { title: "医药字典", icon: "dashboard" },
          hidden: true,
          props: true,
          children: [{
            path: "med_directory/:viewMode/:mode",
            name: "medDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/medicinedic/MedDirectory"),
            meta: { title: "药品词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "chain_directory/:viewMode/:mode",
            name: "chainDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/medicinedic/ChainDirectory"),
            meta: { title: "供应链词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "materiel_type/:viewMode/:mode",
            name: "materielType",
            component: () => import("@/views/business/page/manager/base/dictionary/medicinedic/MaterielType"),
            meta: { title: "物料类型", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "classify_directory/:viewMode/:mode",
            name: "classifyDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/medicinedic/ClassifyDirectory"),
            meta: { title: "物料分类词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "materiel/:viewMode/:mode",
            name: "materiel",
            component: () => import("@/views/business/page/manager/base/dictionary/medicinedic/Materiel"),
            meta: { title: "物料词典", icon: "dashboard" },
            hidden: true,
            props: true
          }]
        }, // --- 健康字典 ---
        {
          path: "health_dic",
          name: "healthDic",
          component: SubPage,
          meta: { title: "健康字典", icon: "dashboard" },
          hidden: true,
          props: true,
          children: [{
            path: "diet_directory/:viewMode/:mode",
            name: "dietDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/healthdic/DietDirectory"),
            meta: { title: "饮食词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "sport_directory/:viewMode/:mode",
            name: "sportDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/healthdic/SportDirectory"),
            meta: { title: "运动词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "sleep_directory/:viewMode/:mode",
            name: "sleepDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/healthdic/SleepDirectory"),
            meta: { title: "睡眠词典", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "smoke_directory/:viewMode/:mode",
            name: "smokeDirectory",
            component: () => import("@/views/business/page/manager/base/dictionary/healthdic/SmokeDirectory"),
            meta: { title: "烟酒词典", icon: "dashboard" },
            hidden: true,
            props: true
          }]
        }, // --- 维护申请 ---
        {
          path: "apply",
          name: "apply",
          component: SubPage,
          meta: { title: "维护申请", icon: "dashboard" },
          hidden: true,
          props: true,
          children: [{
            path: "dir_type/:viewMode/:mode",
            name: "dirType",
            component: () => import("@/views/business/page/manager/base/dictionary/apply/DirType"),
            meta: { title: "词典类型", icon: "dashboard" },
            hidden: true,
            props: true
          }, {
            path: "apply/:viewMode/:mode",
            name: "subApply",
            component: () => import("@/views/business/page/manager/base/dictionary/apply/Apply"),
            meta: { title: "维护申请", icon: "dashboard" },
            hidden: true,
            props: true
          }]
        }]
    }]
}
